#=============================================================================
# MAKEFILE of library
# 
# Main role is to create dependence file for ProjectRoot/object/depends
#
# author suzuki ryoutoku
# See this code regarding the Apache License Version 2.0
#=============================================================================


#=============================================================================
# To set value
#=============================================================================
sources := Coordinate.cpp

dependfile := $(patsubst %.cpp,%.d,$(sources))

vpath %.d $(depends_directory)


#=============================================================================
# target & rule
#=============================================================================
all : $(dependfile) TEST

TEST :;
	@echo "souce files = $(sources)"
	@echo "depend files = $(dependfile)"


%.d : %.cpp
	$(CC) -MM -I$(library_directory) $^ > $(depends_directory)/$@
